<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    var num = new Array()
    num[0] = 'Nike背包';
    num[1] = 'Adidas运动衫';
    num[2] = '李宁运动鞋';
    num[3] = 'Kappa外套';
    num[4] = '361度腰包';
    document.write('<h1>本次打折的商品有：</h1>');
    num.splice(0,1);
    num.push('Adidas运动裤');
    num.splice(1,1,'特步运动鞋');
    // for (var index = 0; index < num.length; index++) {
    //     document.write(num[index]+'<br/>')
        
    // }
    document.write(num.join(','));
</script>
</html>